package com.company.word.dao;

import com.company.word.pojo.Word;

import java.sql.SQLException;
import java.util.List;

public interface IWordDAO
{

	// 添加接口
	public int insert (Word w) throws SQLException;

	//删除
	public int deleteByID(int id) throws SQLException;

	// 修改
	public int update(Word w) throws SQLException;

	// 查询
	public Word findByWord(String word) throws SQLException;

	// 查询
	public List<Word> findAll() throws SQLException;
}
